Skip to content

fix(extensions): show extension ID in list output#1843

Merged
mnriem merged 1 commit intogithub:mainfrom
mbachorik:fix/extension-list-show-id
Mar 16, 2026
Merged

fix(extensions): show extension ID in list output#1843
mnriem merged 1 commit intogithub:mainfrom
mbachorik:fix/extension-list-show-id

Conversation

@mbachorik
Copy link
Contributor

@mbachorik mbachorik commented Mar 14, 2026

Summary

  • Display extension ID in specify extension list output

Problem

When extension names are ambiguous, users are told to use the extension ID:

Please rerun using the extension ID:
  specify extension <command> <extension-id>

But specify extension list didn't show the ID, forcing users to inspect .specify/extensions/registry.json manually.

Solution

Add the ID on a separate line (dim style) below the extension name:

  ✓ Jira Integration (v1.2.0)
     speckit/jira
     Integrate Jira issues with spec-kit workflows
     Commands: 3 | Hooks: 1 | Status: Enabled

Test plan

  • Run full test suite (301 tests pass)
  • Ruff linter passes
  • Added TestExtensionListCLI::test_list_shows_extension_id test

Fixes #1832

🤖 Generated with Claude Code

Copilot AI review requested due to automatic review settings March 14, 2026 11:16
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Improves the UX of extension management by making the installed extension ID discoverable directly in specify extension list, aligning the list output with guidance shown in ambiguous-name error flows.

Changes:

  • Print each installed extension’s id on a separate (dim) line beneath the extension name in specify extension list.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Display the extension ID below the name in `specify extension list` output.
This allows users to easily copy the ID when disambiguation is needed.

Fixes github#1832

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the specify extension list CLI output to include each installed extension’s ID, making it easier for users to act on extensions when names are ambiguous (as suggested by existing CLI error guidance).

Changes:

  • Print the installed extension id on a dimmed line directly under the extension name in specify extension list.
  • Add a CLI integration test asserting the list output includes the extension ID (plus name/version).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/specify_cli/__init__.py Adds a new output line in extension_list() to print ext["id"] beneath the extension name.
tests/test_extensions.py Adds TestExtensionListCLI::test_list_shows_extension_id to validate the new list output includes the extension ID.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@mbachorik mbachorik marked this pull request as ready for review March 14, 2026 12:00
@mbachorik mbachorik requested a review from mnriem as a code owner March 14, 2026 12:00
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves the usability of the extensions CLI by displaying each installed extension’s ID in specify extension list, aligning the output with guidance users receive when extension names are ambiguous (Fixes #1832).

Changes:

  • Print the installed extension ID (dimmed) on its own line directly beneath the extension name/version in specify extension list.
  • Add a CLI test asserting that extension list output includes the extension ID (along with name and version).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/specify_cli/__init__.py Updates extension_list() output to include ext["id"] in the printed details for installed extensions.
tests/test_extensions.py Adds an integration-style CLI test verifying specify extension list shows the extension ID.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mnriem mnriem merged commit bef9c2c into github:main Mar 16, 2026
15 of 16 checks passed
@mnriem
Copy link
Collaborator

mnriem commented Mar 16, 2026

Thank you!

darkglow-net pushed a commit to darkglow-net/spec-kit that referenced this pull request Mar 16, 2026
Display the extension ID below the name in `specify extension list` output.
This allows users to easily copy the ID when disambiguation is needed.

Fixes github#1832

Co-authored-by: iamaeroplane <michal.bachorik@gmail.com>
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: extension list doesn't show extension ID

3 participants